package Junit.domain;

import domain.items.Topic;
import junit.framework.TestCase;

public class TopicTest extends TestCase {
	
	Topic _topic;
	protected void setUp() throws Exception {
		super.setUp();
		this._topic = new Topic(null);
		_topic.setId(1);
		_topic.setName("name");
	}
	public void testSubItems(){
		Topic tTopic = new Topic(_topic);
		assertEquals(0, tTopic.getSubItems().size());
		assertEquals(0, _topic.getSubItems().size());
		assertEquals(_topic, tTopic.getFather());
	}

}
